import java.awt.event.WindowAdapter;
import java.awt.event.WindowEvent;

import javax.swing.JFrame;

public class Main {

	/**
	 * @param args
	 */
	public static void main(String[] args) {
		
		final MainCanvas canvas=new MainCanvas();
		JFrame frame=new JFrame();
		
		frame.setContentPane(canvas);
		
		frame.addWindowListener(new WindowAdapter() {
			@Override
			public void windowClosing(WindowEvent e) {
				new Thread(){
					@Override
					public void run() {
						System.exit(0);
					}
				}.start();
			}
		});
		frame.setBounds(GameDefine.WINDOW_LOCATIONX, GameDefine.WINDOW_LOCATIONY, GameDefine.WINDOW_WIDTH, GameDefine.WINDOW_HEIGHT);
		frame.setTitle(GameDefine.WINDOW_TITLE);
		frame.setTitle("My3D");
		frame.setVisible(true);
		frame.setResizable(false);
	}
}
